package com.example.mingyue.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 写一些jwt的自定义信息
 */
@Data
@Component
@ConfigurationProperties(prefix = "sky.jwt")
public class JwtProperties {

    //自定义密钥
    private String signKey;

    //自定义有效时间
    private long expire;

    //自定义前端传来的令牌名称
    private String adminTokenName;
}
